package com.zyx.mybatisdemo.dao;

import com.zyx.mybatisdemo.entity.Dept;

import java.util.List;

/**
 * @author Yaxi.Zhang
 * @since 2021/8/30 18:00
 */
public interface DeptDao {
    /**
     * 查询部门信息
     *
     * @return 查询到的部门信息
     */
    List<Dept> queryAll();

    /**
     * query dept by id
     *
     * @param id dept id
     * @return dept
     */
    public Dept queryDeptById(Integer id);

    /**
     * query dept and emps by dept id
     *
     * @param id dept id
     * @return dept with emps with the same dept id
     */
    public Dept queryDeptAndEmpsByStep(Integer id);
}
